{extend name="base" /}
{block name='css'}
<style>
.tbr-h{height:30px;line-height:30px;}
</style>
{/block}
{block name="js"}
<script src="__INDEX__/orders/orders.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="l-loading" style="display: block" id="htr-loading"></div>
<div class="htr-toolbar">
   {if HTRGrant('KHDD_01') && $staffRoleId < 4}<button class="btn btn-green f-right" onclick='javascript:toEdit(0)'>新增</button>{/if}
	<div class='f-left'>	
		<div class='f-left tbr-m'>产品：</div>
		<input type="text" name="goodsName" id="goodsName" class='j-ipt'/>
		<div class='f-left tbr-m'>姓名：</div>
		<input type="text" name="user_name" id="user_name" class='j-ipt'/>
		<div class='f-left tbr-m'>消费时间：</div>
		<input type="text" style="margin:0px;vertical-align:baseline;" id="startDate" name="startDate" class="j-ipt" maxLength="20"  />
		<div class='f-left tbr-m'>至</div>
		<input type="text" style="margin:0px;vertical-align:baseline;" id="endDate" name="endDate" class="j-ipt" maxLength="20"  />
		<div class='f-left tbr-m'>疾病类型：</div>
		<select id="diseaseId" name='diseaseId' class='j-ipt'>
		  <option value="">-请选择-</option>    
		  {volist name="diseaseList" id="vo"}
		  <option value="{$vo['diseaseId']}">{$vo['diseaseName']}</option>
		  {/volist}
		</select> 
		<button class="btn btn-blue" onclick='javascript:loadGrid()'>查询</button>
	</div>
	<div class='f-left'>	
		<div class='f-left tbr-m'>区域：</div>
		<select id="areaId1" class='j-ipt j-areas' level="0" onchange="HTR.ITAreas({id:'areaId1',val:this.value,className:'j-areas'});">
		  <option value="">-请选择-</option>
		  {volist name="areaList" id="vo"}
		  <option value="{$vo['areaId']}">{$vo['areaName']}</option>
		  {/volist}
		</select>
		<div class='f-left tbr-m'>消费额度：</div>
		<input type="text" id="total0" name="total0" class="j-ipt"/>
		<div class='f-left tbr-m'>至</div>
		<input type="text" id="total1" name="total1" class="j-ipt"/>
		<div class='f-left tbr-m'>业务员：</div>
		<select id="staffId" name='staffId' class='j-ipt'>
		  <option value="">-请选择-</option>    
		  {volist name="staffList" id="vo"}
		  <option value="{$key}">{$vo}</option>
		  {/volist}
		</select> 
	</div>
	<div style='clear:both'></div>
</div>
<div id="maingrid"></div>
<script>
$(function(){initGrid({$staffRoleId});})
</script>
{/block}